package com.cloud.cmt.usermanage.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.cloud.cmt.usermanage.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;

/**
 * User: wcy
 * Date: 2017/10/17
 * Time: 15:42
 */
@Data
@Entity(name = "role_group")
public class RoleGroup extends BaseEntity<Long> {


	@JsonProperty("group_name")
	@JSONField(name = "group_name")
	@ApiModelProperty(name = "group_name", notes = "角色组名称", example = "部门经理")
	private String groupName;

	@ApiModelProperty(name = "rank", notes = "排序", example = "1")
	private Double rank;

	@ApiModelProperty(name = "remark", notes = "备注", example = "小小的备注一下")
	private String remark;

	@ApiModelProperty(name = "uplink", notes = "上级id", example = "1")
	private Long uplink;

	@JsonProperty("tenant_id")
	@JSONField(name = "tenant_id")
	@ApiModelProperty(name = "tenant_id", notes = "租户", example = "1")
	private String tenantId;
}
